<template>
  <div>
    <span>{{ obj.shopName }}</span>
    <button @click="$emit('changeNum', obj.count + 1)">+</button>
    <span>{{ obj.count }}</span>
    <button :disabled="obj.count === 0" @click="$emit('changeNum', obj.count - 1)">-</button>
  </div>
</template>

<script>
export default {
  name: 'NiceSnacks',
  data() {
    return {}
  },
  methods: {},
  components: {},
  computed: {},
  watch: {},
  created() {},
  props: {
    obj: {
      type: Object,
      required: true
    }
  }
}
</script>

<style scoped></style>